<?php

$a = (foo())->bar();
$c = (foo())->bar;
$d = (foo())::bar();
$e = (foo())[0];
$f = new (foo())();